import { IFormConfig } from '@/base-ui/form/type';
export const searchFormConfig: IFormConfig = {
  ElFormItems: [
    {
      type: 'input',
      field: 'id',
      label: 'id',
      rules: [],
      placeholder: '请输入id'
    },
    {
      type: 'input',
      field: 'name',
      label: '用户名',
      rules: [],
      placeholder: '请输入用户名'
    },
    {
      type: 'input',
      field: 'realname',
      label: '真实姓名',
      rules: [],
      placeholder: '请输入用户名'
    },
    {
      type: 'input',
      field: 'cellphone',
      label: '电话号码',
      rules: [],
      placeholder: '请输入电话号码'
    },
    {
      type: 'select',
      field: 'enable',
      label: '是否可用',
      rules: [],
      placeholder: '请输入状态',
      options: [
        { title: '可用', value: 1 },
        { title: '不可用', value: 0 }
      ]
    },
    {
      type: 'datePicker',
      field: 'createAt',
      label: '创建的时间',
      rules: [],
      placeholder: '请输入创建时间的范围',
      otherOptions: {
        type: 'daterange',
        startPlaceholder: '开始时间',
        endPlaceholder: '结束时间'
      }
    }
  ],
  ElColLayout: {
    xs: 24,
    sm: 12,
    lg: 8,
    xl: 6
  }
};
